<div class="modal fade" id="update-shop-type-dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					修改商品类别
				</h4>
			</div>
			<div class="modal-body">
				 <form class="bs-example bs-example-form form-horizontal" role="form">
					<div class="form-group">
			       		<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label"><font class="tip-red">*</font>父类别</label>
						<div class="col-sm-8">
							<input type="hidden" id="stId" value="${item.stId!}" />
							<input type="hidden" class="form-control" id="stParentId" value="${item.stParentId!}">
							<input type="text" class="form-control" id="stParentName" placeholder="" readonly="readonly" value="${item.parentShopType.stName!}">
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label"><font class="tip-red">*</font>类别名称</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" id="stName" placeholder="类别名称" value="${item.stName!}">
							<span id="stNameSpan" class="tip-red"></span>
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label"><font class="tip-red">*</font>类别Icon</label>
						<div class="col-sm-8">
							<input type="file" class="form-control" id="stIcon" name="stIcon" placeholder="类别Icon">
							<img src="${webRoot!}/upload/${item.stIcon!}" class="update-shop-type-icon"/>
							<span id="stIconSpan" class="tip-red"></span>
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label">排序</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" id="stSort" placeholder="请输入排序序号，序号越小越靠前" value="${item.stSort!}">
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label">状态</label>
						<div class="col-sm-8">
							<#if item.stStatus == 1>
							<label class="radio-inline">
								<input type="radio" name="stStatus" value="1" checked>正常
							</label>
							<label class="radio-inline">
								<input type="radio" name="stStatus" value="0">停用
							</label>
							<#else>
							<label class="radio-inline">
								<input type="radio" name="stStatus" value="1" >正常
							</label>
							<label class="radio-inline">
								<input type="radio" name="stStatus" value="0" checked>停用
							</label>
							</#if>
						</div>
						<div class="col-sm-1"></div>
					</div>
			    </form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-primary" id="save-button" onclick="ShopType.updateShopType()">
					保存
				</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">
					关闭
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
